package org.domeos.framework.api.model.monitor;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * @author lixiaokai
 *
 */

@ApiModel("组件状态")
public class ComponentStatus {
	
	@ApiModelProperty(hidden = true)
	private int id;
	@ApiModelProperty(dataType = "string" , value = "主机名称")
	private String hostname;
	@ApiModelProperty(required = true , dataType = "string" , value = "组件名称")
	private String component;
	@ApiModelProperty(required = true , dataType = "string" , value = "组件状态")
	private String status;
	@ApiModelProperty(hidden = true)
	private long checkTime;
	
	public ComponentStatus() {
	}
	
	public ComponentStatus(String hostname, String component, String status, long checkTime) {
		this.hostname = hostname;
		this.component = component;
		this.status = status;
		this.checkTime = checkTime;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getHostname() {
		return hostname;
	}
	public void setHostname(String hostname) {
		this.hostname = hostname;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getComponent() {
		return component;
	}
	public void setComponent(String component) {
		this.component = component;
	}

	public long getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(long checkTime) {
		this.checkTime = checkTime;
	}
	
}
